import {deleted, get, post, put} from "@/api/client";

/**
 * 查询分页列表
 * @param  data
 */
export const getBudgetPage = (data) => {
    return post(`/budget/page`, data);
};

/**
 * 修改Depart
 * @param  Depart
 */
export const updateBudget = (data) => {
    return post("/budget/updateById", data);
};

/**
 * 添加信息
 * @param  Depart
 */
export const addBudget = (data) => {
    return post("/budget/save", data);
};
/**
 * 删除
 * @param  id
 */
export const deletedBudget = (data) => {
    return deleted("/budget/delete", data);
};

/**
 * 根据id查询
 * @param  id
 */
export const getBudgetById = (id) => {
    return get(`/budget/detail`, {id});
};

/**
 * 查询全部列表
 */
export const getBudgettList = () => {
    return get(`/budget/list`);
};
